﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Dto.Business.ProductionControl
{
    public class Push01Response
    {

      
     public DemoOEE OEE { get; set; }

      /// <summary>
      /// 报警信息
      /// </summary>
      public  List<DemoAlarms> Alarms { get; set; }

      /// <summary>
      /// 各个工站需要显示的数据
      /// </summary>
      public List<DemoStationData> DemoStationData {  get; set; }
    }

    public class DemoOEE
    {
        /// <summary>
        /// 运行时间
        /// </summary>
        public string RunTime { get; set; } = "00:00:00";
       
        /// <summary>
        /// 故障时间
        /// </summary>
        public string FailureTime { get; set; } = "00:00:00";
        /// <summary>
        /// 设备稼动率
        /// </summary>
        public string OperatingRate { get; set; } = "99.99%";

        public int TotalCount {  get; set; }

        public int OkCount {  get; set; }

        public int NgCount { get; set; }

    }
    /// <summary>
    /// 工站信息
    /// </summary>
    public class DemoStationData
    {
        /// <summary>
        /// 当前加工产品SN
        /// </summary>
        public string SN {  get; set; }
        /// <summary>
        /// 工艺名称
        /// </summary>
        public string Name {  get; set; }
        /// <summary>
        /// 进站时间  
        /// </summary>
        public string EnterTime { get; set; }
        /// <summary>
        /// 出站时间
        /// </summary>
        public string ExitTime { get; set; }
        /// <summary>
        /// 处理时间
        /// </summary>
        public string ProccessTime {get;set;}

    }

    /// <summary>
    /// 报警信息
    /// </summary>
    public class DemoAlarms
    {
        /// <summary>
        /// 报警ID
        /// </summary>
        public int Id {  get; set; }
        /// <summary>
        /// 报警内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 报警时间
        /// </summary>
        public string AlarmTime { get; set; }
        /// <summary>
        /// 报警等级 默认warning
        /// </summary>
        public string Level { get; set; } = "warning";

    }
}
